package com.charger.chargingStation.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.charger.charger.domain.Charger;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.charger.common.annotation.Excel;
import com.charger.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 充电站点对象 chargingstation
 * 
 * @author charger1
 * @date 2024-11-22
 */
@Data
public class Chargingstation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 站点编号 */
    private Long chargingstationId;

    /** 站点名称 */
    @Excel(name = "站点名称")
    private String siteName;

    /** 站点属性 */
    @Excel(name = "站点属性")
    private Long siteProperties;

    /** 站点类型 */
    @Excel(name = "站点类型")
    private Long siteType;

    /** 是否开启评论 */
    @Excel(name = "是否开启评论")
    private Long reviews;

    /** 营业开始时间 */
    private String startTime;

    /** 营业结束时间 */
    private String endTime;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 站点状态 */
    @Excel(name = "站点状态")
    private Long status;

    /** 电站缩略图 */
    @Excel(name = "电站缩略图")
    private String img;

    @TableField(select = false,exist = false)
    private List<Long> chargerId;

    @TableField(select = false,exist = false)
    private List<Charger> chargers;

    public void setChargingstationId(Long chargingstationId) 
    {
        this.chargingstationId = chargingstationId;
    }

    public Long getChargingstationId() 
    {
        return chargingstationId;
    }
    public void setSiteName(String siteName) 
    {
        this.siteName = siteName;
    }

    public String getSiteName() 
    {
        return siteName;
    }
    public void setSiteProperties(Long siteProperties) 
    {
        this.siteProperties = siteProperties;
    }

    public Long getSiteProperties() 
    {
        return siteProperties;
    }
    public void setSiteType(Long siteType) 
    {
        this.siteType = siteType;
    }

    public Long getSiteType() 
    {
        return siteType;
    }
    public void setReviews(Long reviews) 
    {
        this.reviews = reviews;
    }

    public Long getReviews() 
    {
        return reviews;
    }
    public void setStartTime(String startTime) 
    {
        this.startTime = startTime;
    }

    public String getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(String endTime) 
    {
        this.endTime = endTime;
    }

    public String getEndTime() 
    {
        return endTime;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setImg(String img) 
    {
        this.img = img;
    }

    public String getImg() 
    {
        return img;
    }

    public List<Long> getChargerId() {
        return chargerId;
    }

    public void setChargerId(List<Long> chargerId) {
        this.chargerId = chargerId;
    }

    public List<Charger> getChargers() {
        return chargers;
    }

    public void setChargers(List<Charger> chargers) {
        this.chargers = chargers;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("chargingstationId", getChargingstationId())
            .append("siteName", getSiteName())
            .append("siteProperties", getSiteProperties())
            .append("siteType", getSiteType())
            .append("reviews", getReviews())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("address", getAddress())
            .append("status", getStatus())
            .append("img", getImg())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .toString();
    }
}
